﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Forex.IB.RealTimeBars.Components
{
    public class ForexException : Exception
    {
        private string _appName;
        private string _serverName;
        private string _debugInfo;

        public ForexException(string message)
            : base(message)
        {
            _serverName = Environment.MachineName;
            _appName = "";
            _debugInfo = "";
        }

        public ForexException(string message, Exception innerException)
            : base(message, innerException)
        {
            _serverName = Environment.MachineName;
            _appName = "";
            _debugInfo = "";
        }

        public string ServerName
        {
            get { return _serverName; }
            set { _serverName = value; }
        }

        public string DebugInfo
        {
            get { return _debugInfo; }
            set { _debugInfo = value; }
        }

        public string AppName
        {
            get { return _appName; }
            set { _appName = value; }
        }

    }
}
